package com.scrcu.core.batch.job;

import org.quartz.InterruptableJob;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.UnableToInterruptJobException;

/**
 * @Description:
 * @Author: 刘超
 * @Date: 2023-05-17 15:48
 */
public class TestInterruptableJob implements InterruptableJob {
    @Override
    public void interrupt() throws UnableToInterruptJobException {
        System.out.println("TestInterruptableJob interrupted");
    }

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("TestInterruptableJob");
    }
}
